package com.zretc.service;

import com.github.pagehelper.PageInfo;
import com.zretc.entity.Order;
import com.zretc.entity.Track;
import com.zretc.entity.Type;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

public interface TrackService {

    /**
     * 查询仓库下的订单,分页
     *
     * @param: param
     * @return
     */
    PageInfo<Order> getOrderByPage(Map<String, String> param);

    /**
     * 添加一条物流信息记录
     *
     * @param: track
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/26 2:44
     * @return: java.lang.Integer
     */
    Integer addTrack(Track track);

    /**
     * 报表
     * @param titleName
     * @param columnWidth
     * @param fileName
     * @param columnName
     * @paramorders
     * @return
     */
      String getExcel(String titleName,
                      Integer[] columnWidth,
                      String fileName,
                      String[] columnName,
                      List<Order> orders);

    /**
     * 报表
     * @param param
     * @return
     */
    List<Order> getByExcel(Map<String, String> param);

    /**
     * 出库
     * @param param
     * @return
     */
      int update(Map<String, String> param);


}
